Duff's device - definizione. Che cos'è Duff's device
Diclib.com
Dizionario ChatGPT
Inserisci una parola o una frase in qualsiasi lingua 👆
Lingua:

Traduzione e analisi delle parole tramite l'intelligenza artificiale ChatGPT

In questa pagina puoi ottenere un'analisi dettagliata di una parola o frase, prodotta utilizzando la migliore tecnologia di intelligenza artificiale fino ad oggi:

  • come viene usata la parola
  • frequenza di utilizzo
  • è usato più spesso nel discorso orale o scritto
  • opzioni di traduzione delle parole
  • esempi di utilizzo (varie frasi con traduzione)
  • etimologia

Cosa (chi) è Duff's device - definizione


Duff's device         
MANUAL IMPLEMENTATION OF LOOP UNROLLING USING A DO-WHILE LOOP AND A SWITCH STATEMENT
Duffs device; Duff Devices; Duff's Device
In the C programming language, Duff's device is a way of manually implementing loop unrolling by interleaving two syntactic constructs of C: the - loop and a switch statement. Its discovery is credited to Tom Duff in November 1983, when Duff was working for Lucasfilm and used it to speed up a real-time animation program.
Duff's device         
MANUAL IMPLEMENTATION OF LOOP UNROLLING USING A DO-WHILE LOOP AND A SWITCH STATEMENT
Duffs device; Duff Devices; Duff's Device
The most dramatic use yet seen of fall through in C, invented by Tom Duff when he was at Lucasfilm. Trying to bum all the instructions he could out of an inner loop that copied data serially onto an output port, he decided to unroll it. He then realised that the unrolled version could be implemented by *interlacing* the structures of a switch and a loop: register n = (count + 7) / 8; /* count > 0 assumed */ switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } Shocking though it appears to all who encounter it for the first time, the device is actually perfectly valid, legal C. C's default fall through in case statements has long been its most controversial single feature; Duff observed that "This code forms some sort of argument in that debate, but I'm not sure whether it's for or against." [For maximal obscurity, the outermost pair of braces above could be actually be removed - GLS] [Jargon File] (2001-06-22)
Device (pop-rock band)         
AMERICAN POP-ROCK TRIO
Device (pop rock band)
Device was a short-lived American pop-rock trio from the mid 1980s, formed by keyboardist, bassist and vocalist Holly Knight. It also included frontman Paul Engemann and guitarist Gene Black.